﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using QLCHBANGIAY.DATA;
using QLCHBANGIAY.BUSINESS;

namespace QuanLyBanGiay.ucControl
{
    public partial class ucMenu : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public string viewmenusanpham()
        {
            string Chuoi = "";


            List<Category> list = new List<Category>();
            list = CategoryServices.Category_GetByTop("100", "len([Level])=10 and Active=1 and [Level] like '00001%'", "[Level] asc");
            if (list.Count > 0)
            {
                for (int i = 0; i < list.Count; i++)
                {

                    Chuoi += "<li><a href=\"/" + list[i].Tag + ".htm" + "\">" + list[i].Name + "</a></li>";
                }
            }

            return Chuoi;
            //mnsanpham.Text = Chuoi;
            //mnsanpham = null;
        }

        protected void searchbutton_Click(object sender, EventArgs e)
        {

        }

      
    }
}